﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BaseCardTypes = Wormhole.Engine.CardLibrary.BaseCardTypes;
using CardTypes = Wormhole.Engine.CardLibrary.CardTypes;

namespace Wormhole.Engine.Decks
{
	/// <author>Rodney McKay</author>
	/// <date>10 April 2008</date>
	/// <summary>
	/// Team cards.
	/// </summary>
	public class TeamCards : SkillCards
	{
		#region Events
		#endregion

		#region Properties

		#region Victory Total
		/// <summary>
		/// Calculate the opponents victory total from the point values of the team.
		/// </summary>
		public int VictoryTotal
		{
			get
			{
				int victoryTotal = 0;

				foreach (CardTypes.Character character in this)
				{
					victoryTotal += character.Cost;
				}

				return victoryTotal;
			}
		}
		#endregion

		#endregion

		#region Constructor
		/// <summary>
		/// Initialize a default instance of the class.
		/// </summary>
		public TeamCards() : base()
		{
		}

		/// <summary>
		/// Create a new deck for a specific player.
		/// </summary>
		/// <param name="player">The player the deck belongs to.</param>
		public TeamCards(Player.Player player)
			: base(player)
		{
		}
		#endregion	
	}
}
